const express = require('express')
const router = express.Router()

router.post('/post-data', function(req, res) {
  console.log(req)

  res.json({
    data: req.body.name,
    message: 'hello world'
  })
})

module.exports = router
